import service from "@/utils/request.js";

// 保证金充值退款记录列表
export const salesBondPage = (data) => {
    return service({
        url: '/system/salesBond/salesBondPage',
        method: 'post',
        data
    })
}

// 保证金主数据
export const salesBondInfo = (data) => {
    return service({
        url: '/system/salesBond/salesBondInfo',
        method: 'post',
        data
    })
}

// 创建保证金充值订单
export const createOrder = (data) => {
    return service({
        url: '/system/salesBond/createOrder',
        method: 'post',
        data
    })
}

// 保证金-微信
export const createQrCodeWx = (data) => {
    return service({
        url: '/system/salesBond/createQrCodeWx',
        method: 'post',
        data
    })
}

// 保证金-支付宝
export const createQrCodeAlipay = (data) => {
    return service({
        url: '/system/salesBond/createQrCodeAlipay',
        method: 'post',
        data
    })
}

// 卖家保证金--查询支付结果
export const queryPayResult = (data) => {
    return service({
        url: '/system/salesBond/queryOrderPayStatus',
        method: 'post',
        data
    })
}
// 卖家保证金--退款
export const bondRefund = (data) => {
    return service({
        url: '/system/salesBond/bondRefund',
        method: 'post',
        data
    })
}
